home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / decals.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  10.7 KB  |  537 lines

  1. // ==========================
  2. // DHM - Decals
  3. //
  4. // *************** IMPORTANT NOTE *********************
  5. // If you want the decal to be available for selection
  6. // by the level designers in QERadiant, then you must
  7. // use the name of the image as the name of the shader.
  8. //
  9. // Follow the examples below.
  10. // ****************************************************
  11. //
  12. // ==========================
  13.  
  14. // PGM -- for demon dice targeting
  15. pentagram_decal
  16. {
  17.     surfaceparm nolightmap
  18.     qer_editorimage textures/decals/pentagram_decal.tga
  19.     sort decal
  20.     {
  21.         map textures/decals/pentagram_decal.tga
  22.         blendfunc filter
  23.         rgbGen identity
  24.     }
  25.     {    
  26.         map textures/decals/pentagram_decal2.tga
  27.         blendfunc GL_ONE GL_ONE
  28.         rgbGen identity
  29.     }
  30. }
  31.  
  32. // bug smear, streak
  33. bug_smear1_1
  34. {
  35.     surfaceparm nolightmap
  36.     qer_editorimage textures/decals/bug_smear1_1.tga
  37.     sort decal
  38.     {
  39.         clampmap textures/decals/bug_smear1_1.tga
  40.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  41.         rgbGen vertex
  42.         alphaGen vertex
  43.     }
  44. }
  45.  
  46. // bug smear, splat
  47. bug_smear1_2
  48. {
  49.     surfaceparm nolightmap
  50.     qer_editorimage textures/decals/bug_smear1_2.tga
  51.     sort decal
  52.     {
  53.         clampmap textures/decals/bug_smear1_2.tga
  54.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  55.         rgbGen vertex
  56.         alphaGen vertex
  57.     }
  58. }
  59.  
  60. acid_splat
  61. {
  62.     surfaceparm nolightmap
  63.     qer_editorimage textures/decals/acid_splat.tga
  64.     sort decal
  65.     {
  66.         clampmap textures/decals/acid_splat.tga
  67.         //blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  68.         blendfunc GL_DST_COLOR GL_ZERO
  69.         rgbGen vertex
  70.         alphaGen vertex
  71.     }
  72. }
  73.  
  74. acid_splat2
  75. {
  76.     surfaceparm nolightmap
  77.     qer_editorimage textures/decals/acid_splat2.tga
  78.     sort decal
  79.     {
  80.         clampmap textures/decals/acid_splat2.tga
  81.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  82.         //blendfunc GL_DST_COLOR GL_ZERO
  83.         rgbGen vertex
  84.         alphaGen vertex
  85.     }
  86. }
  87.  
  88. blood_splat
  89. {
  90.     surfaceparm nolightmap
  91.     qer_editorimage textures/decals/blood_splat.tga
  92.     sort decal
  93.     {
  94.         clampmap textures/decals/blood_splat.tga
  95.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  96.         rgbGen vertex
  97.         alphaGen vertex
  98.     }
  99. }
  100.  
  101. blood_splat2
  102. {
  103.     surfaceparm nolightmap
  104.     qer_editorimage textures/decals/blood_splat2.tga
  105.     sort decal
  106.     {
  107.         clampmap textures/decals/blood_splat2.tga
  108.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  109.         rgbGen vertex
  110.         alphaGen vertex
  111.     }
  112. }
  113.  
  114. blood_splat3
  115. {
  116.     surfaceparm nolightmap
  117.     qer_editorimage textures/decals/blood_splat3.tga
  118.     sort decal
  119.     {
  120.         clampmap textures/decals/blood_splat3.tga
  121.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  122.         rgbGen vertex
  123.         alphaGen vertex
  124.     }
  125. }
  126.  
  127. blood_splat4
  128. {
  129.     surfaceparm nolightmap
  130.     qer_editorimage textures/decals/blood_splat4.tga
  131.     sort decal
  132.     {
  133.         clampmap textures/decals/blood_splat4.tga
  134.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  135.         rgbGen vertex
  136.         alphaGen vertex
  137.     }
  138. }
  139.  
  140. blood_splat5
  141. {
  142.     surfaceparm nolightmap
  143.     qer_editorimage textures/decals/blood_splat5.tga
  144.     sort decal
  145.     {
  146.         clampmap textures/decals/blood_splat5.tga
  147.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  148.         rgbGen vertex
  149.         alphaGen vertex
  150.     }
  151. }
  152.  
  153. blood_splat6
  154. {
  155.     surfaceparm nolightmap
  156.     qer_editorimage textures/decals/blood_splat6.tga
  157.     sort decal
  158.     {
  159.         clampmap textures/decals/blood_splat6.tga
  160.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  161.         rgbGen vertex
  162.         alphaGen vertex
  163.     }
  164. }
  165.  
  166. ice_splotch
  167. {
  168.     surfaceparm nolightmap
  169.     qer_editorimage textures/decals/ice_splotch.tga
  170.     sort decal
  171.     {
  172.         map textures/decals/ice_splotch.tga
  173.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  174.         rgbGen vertex
  175.         alphaGen vertex
  176.     }
  177. }
  178.  
  179. scorch
  180. {
  181.     surfaceparm nolightmap
  182.     qer_editorimage textures/decals/scorch.tga
  183.     sort decal
  184.     {
  185.         map textures/decals/scorch.tga
  186.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  187.         rgbGen vertex
  188.         alphaGen vertex
  189.     }
  190. }
  191.  
  192. water_ripple
  193. {
  194.     surfaceparm nolightmap
  195.     qer_editorimage textures/decals/water_ripple.tga
  196.     sort decal
  197.     {
  198.         map textures/decals/water_ripple.tga
  199.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  200.         rgbGen vertex
  201.         alphaGen vertex
  202.     }
  203. }
  204.  
  205. water_ripple2
  206. {
  207.     surfaceparm nolightmap
  208.     qer_editorimage textures/decals/water_ripple2.tga
  209.     sort decal
  210.     {
  211.         map textures/decals/water_ripple2.tga
  212.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  213.         rgbGen vertex
  214.         alphaGen vertex
  215.     }
  216. }
  217.  
  218. water_splat
  219. {
  220.     surfaceparm nolightmap
  221.     qer_editorimage textures/decals/water_splat.tga
  222.     sort decal
  223.     {
  224.         map textures/decals/water_splat.tga
  225.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  226.         rgbGen vertex
  227.         alphaGen vertex
  228.     }
  229. }
  230.  
  231. lava_trail1_1
  232. {
  233.     surfaceparm nolightmap
  234.     qer_editorimage textures/decals/lava_trail1_1.tga
  235.     sort decal
  236.     {
  237.         map textures/decals/lava_trail1_1.tga
  238.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  239.         //blendfunc GL_ONE GL_ONE
  240.         rgbGen vertex
  241.         alphaGen vertex
  242.     }
  243. }
  244.  
  245. lava_puddle1_1
  246. {
  247.     surfaceparm nolightmap
  248.     qer_editorimage textures/decals/laval_puddle1_1.tga
  249.     sort decal
  250.     {
  251.         map textures/decals/laval_puddle1_1.tga
  252.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  253.         rgbGen vertex
  254.         alphaGen vertex
  255.     }
  256. }
  257.  
  258. // ******************************************************
  259. // ** Decals below are used in game code, not for maps **
  260. // ******************************************************
  261.  
  262. // PGM -- for boojum's scream impact marks
  263. boojum_impact_decal
  264. {
  265.     surfaceparm nolightmap
  266.     qer_editorimage textures/decals/ice_splotch.tga
  267.     sort decal
  268.     {
  269.         map textures/decals/ice_splotch.tga
  270.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  271.         alphaFunc GE128
  272.         rgbGen vertex
  273.         alphaGen vertex
  274.     }
  275. }
  276.  
  277. // PGM -- acid impact splat
  278. acid_splat_decal
  279. {
  280.     surfaceparm nolightmap
  281.     qer_editorimage textures/decals/acid_splat.tga
  282.     sort decal
  283.     {
  284.         clampmap textures/decals/acid_splat.tga
  285.         //blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  286.         blendfunc GL_DST_COLOR GL_ZERO
  287.         rgbGen vertex
  288.         alphaGen vertex
  289.     }
  290. }
  291.  
  292. // DHM -- card impact
  293. card_impact_decal
  294. {
  295.     surfaceparm nolightmap
  296.     qer_editorimage textures/decals/scorch.tga
  297.     sort decal
  298.     {
  299.         clampmap textures/decals/scorch.tga
  300.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  301.         rgbGen vertex
  302.         alphaGen vertex
  303.     }
  304. }
  305.  
  306. blood1_decal
  307. {
  308.     surfaceparm nolightmap
  309.     qer_editorimage textures/decals/blood_splat.tga
  310.  
  311.     sort decal
  312.     {
  313.         map textures/decals/blood_splat.tga
  314.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  315.         alphagen vertex
  316.     }
  317. }
  318. blood2_decal
  319. {
  320.     surfaceparm nolightmap
  321.     qer_editorimage textures/decals/blood_splat2.tga
  322.  
  323.     sort decal
  324.     {
  325.         map textures/decals/blood_splat2.tga
  326.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  327.         alphagen vertex
  328.     }
  329. }
  330. blood3_decal
  331. {
  332.     surfaceparm nolightmap
  333.     qer_editorimage textures/decals/blood_splat3.tga
  334.  
  335.     sort decal
  336.     {
  337.         map textures/decals/blood_splat3.tga
  338.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  339.         alphagen vertex
  340.     }
  341. blood4_decal
  342. {
  343.     surfaceparm nolightmap
  344.     qer_editorimage textures/decals/blood_splat4.tga
  345.  
  346.     sort decal
  347.     {
  348.         map textures/decals/blood_splat4.tga
  349.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  350.         alphagen vertex
  351.     }
  352. blood5_decal
  353. {
  354.     surfaceparm nolightmap
  355.     qer_editorimage textures/decals/blood_splat5.tga
  356.  
  357.     sort decal
  358.     {
  359.         map textures/decals/blood_splat5.tga
  360.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  361.         alphagen vertex
  362.     }
  363. }
  364. blood6_decal
  365. {
  366.     surfaceparm nolightmap
  367.     qer_editorimage textures/decals/blood_splat6.tga
  368.  
  369.     sort decal
  370.     {
  371.         map textures/decals/blood_splat6.tga
  372.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  373.         alphagen vertex
  374.     }
  375. }
  376.  
  377. //chris green blood1
  378. g_blood1_decal
  379. {
  380.     surfaceparm nolightmap
  381.     qer_editorimage textures/decals/g_blood_splat.tga
  382.     sort decal
  383.     {
  384.         clampmap textures/decals/g_blood_splat.tga
  385.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  386.         rgbGen vertex
  387.         alphaGen vertex
  388.     }
  389. }
  390. //chris green blood
  391. g_blood2_decal
  392. {
  393.     surfaceparm nolightmap
  394.     qer_editorimage textures/decals/g_blood_splat2.tga
  395.     sort decal
  396.     {
  397.         clampmap textures/decals/g_blood_splat2.tga
  398.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  399.         rgbGen vertex
  400.         alphaGen vertex
  401.     }
  402. }
  403. //chris green blood3
  404. g_blood3_decal
  405. {
  406.     surfaceparm nolightmap
  407.     qer_editorimage textures/decals/g_blood_splat3.tga
  408.     sort decal
  409.     {
  410.         clampmap textures/decals/g_blood_splat3.tga
  411.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  412.         rgbGen vertex
  413.         alphaGen vertex
  414.     }
  415. }
  416. //chris green blood4
  417. g_blood4_decal
  418. {
  419.     surfaceparm nolightmap
  420.     qer_editorimage textures/decals/g_blood_splat4.tga
  421.     sort decal
  422.     {
  423.         clampmap textures/decals/g_blood_splat4.tga
  424.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  425.         rgbGen vertex
  426.         alphaGen vertex
  427.     }
  428. }
  429. //chris green blood5
  430. g_blood5_decal
  431. {
  432.     surfaceparm nolightmap
  433.     qer_editorimage textures/decals/g_blood_splat5.tga
  434.     sort decal
  435.     {
  436.         clampmap textures/decals/g_blood_splat5.tga
  437.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  438.         rgbGen vertex
  439.         alphaGen vertex
  440.     }
  441. }
  442. //chris green blood 6
  443. g_blood6_decal
  444. {
  445.     surfaceparm nolightmap
  446.     qer_editorimage textures/decals/g_blood_splat6.tga
  447.     sort decal
  448.     {
  449.         clampmap textures/decals/g_blood_splat6.tga
  450.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  451.         rgbGen vertex
  452.         alphaGen vertex
  453.     }
  454. }
  455.  
  456. //chris oil blood1
  457. o_blood1_decal
  458. {
  459.     surfaceparm nolightmap
  460.     qer_editorimage textures/decals/o_blood_splat.tga
  461.     sort decal
  462.     {
  463.         clampmap textures/decals/o_blood_splat.tga
  464.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  465.         rgbGen vertex
  466.         alphaGen vertex
  467.     }
  468. }
  469. //chris oil blood 2
  470. o_blood2_decal
  471. {
  472.     surfaceparm nolightmap
  473.     qer_editorimage textures/decals/o_blood_splat2.tga
  474.     sort decal
  475.     {
  476.         clampmap textures/decals/o_blood_splat2.tga
  477.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  478.         rgbGen vertex
  479.         alphaGen vertex
  480.     }
  481. }
  482. //chris oil blood 3
  483. o_blood3_decal
  484. {
  485.     surfaceparm nolightmap
  486.     qer_editorimage textures/decals/o_blood_splat3.tga
  487.     sort decal
  488.     {
  489.         clampmap textures/decals/o_blood_splat3.tga
  490.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  491.         rgbGen vertex
  492.         alphaGen vertex
  493.     }
  494. }
  495. //chris oil blood4
  496. o_blood4_decal
  497. {
  498.     surfaceparm nolightmap
  499.     qer_editorimage textures/decals/o_blood_splat4.tga
  500.     sort decal
  501.     {
  502.         clampmap textures/decals/o_blood_splat4.tga
  503.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  504.         rgbGen vertex
  505.         alphaGen vertex
  506.     }
  507. }
  508. //chris oil blood 5
  509. o_blood5_decal
  510. {
  511.     surfaceparm nolightmap
  512.     qer_editorimage textures/decals/o_blood_splat5.tga
  513.     sort decal
  514.     {
  515.         clampmap textures/decals/o_blood_splat5.tga
  516.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  517.         rgbGen vertex
  518.         alphaGen vertex
  519.     }
  520. }
  521. //chris oil blood 6
  522. o_blood6_decal
  523. {
  524.     surfaceparm nolightmap
  525.     qer_editorimage textures/decals/o_blood_splat6.tga
  526.     sort decal
  527.     {
  528.         clampmap textures/decals/o_blood_splat6.tga
  529.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  530.         rgbGen vertex
  531.         alphaGen vertex
  532.     }
  533. }
  534.     
  535.